#ifndef CGlobal_H
#define CGlobal_H
/********************************************************************************
** @ Date:2025/05/19
** @ Author: HanJiaXin
** @ Description:一些公共函数
** @ Version:1.0.0
** @ ClassName:
** @ Fun:
********************************************************************************/
#include <QString>
#include "cmoduleparent.h"
#define A2T QString::fromLocal8Bit
#define FL  __FILE__+(","+QString::number(__LINE__))
extern QString createGuid();   //生成Guid函数，返回生成的guid字符串
extern int messageBox(int nMsgLevel, QString sMsg);//全局QMessage，返回选择的结果 0信息框 1警告框 2错误框 3询问框
typedef CModuleParent* (*GETMODULEPTREX)();

//安全释放指针
#define SAFE_DELETE(p) \
{ \
if (NULL != p) \
    { \
    delete p; \
    p = NULL; \
    } \
}

#endif
